package com.ly.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 数据备份入参
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
@Data
public class BackupDTO {

    /**
     * 备份ID:必填
     */
    @NotNull(groups = { UpdateGroup.class, CreateGroup.class }, message = "备份ID不能为空")
    @Schema(description = "备份ID:必填")
    private Integer backupId;

    /**
     * 备份名称:必填
     */
    @NotBlank(groups = { CreateGroup.class }, message = "备份名称不能为空")
    @Schema(description = "备份名称:必填")
    private String backupName;
}
